import * as mine from "../../api/mine";

Page({
    data: {
        list:[]
    },
    onShow(){
        mine.getShopList()
            .then((res)=>{
                this.setData({
                    list:res
                })
            })
    },
    handle_edit_address(e){

        let { item } = e.currentTarget.dataset;

        wx.navigateTo({
            url: '/pages/address-edit/address-edit?shopNo='+ item.shopNo
        });
    },
    handle_open_qr(e){
        let { item } = e.currentTarget.dataset;
        wx.navigateTo({
            url: '/pages/qr/qr?shopNo='+ item.shopNo
        });
    }
})
